package com.mingdong.first.mingling.commond;

import com.mingdong.first.mingling.device.Light;

public class LightOffCommond implements Commond {

	Light light;
	public LightOffCommond(Light light){
		this.light = light;
	}	
	
	public void execute() {
		light.off();
	}

	public void undo() {
		light.on();
	}

}
